Intro

Actions for controlling media playback

With the web media package you can play sounds in your toddle app or control video playback.

Demo

Actions

  • PlayMedia

    Play the media of a give audio or video element

    Arguments

    elementHTML Media Element or an id
  • PauseMedia

    Pause the media of a give audio or video element

    Arguments

    elementHTML Media Element or an id
  • LoadMedia

    resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.

    Arguments

    elementHTML Media Element or an id
  • SetCurrentTime

    Set the current time of the media element

    Arguments

    elementHTML Media Element or an id
    timeTime in seconds
  • PlayAudio

    Play one or more audio sources using the Web Audio API

    Arguments

    urlURL or array of URLs